package com.wxyzz.satserver.article.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ShowArticleVO{
    private Integer id;          //文章id
    private Integer uidPublish;  //发布文章的用户id
    private String  label;       //文章标签，属于哪一类
    private String  title;       //文章标题
    private Integer concernFlag;  //是否关注  关注为1  未关注为0
    private String  content;     //文章内容
    private Integer enshrineNum; //收藏数量
    private Integer likeNum;     //点赞数量
    private String  imgPath;     //图片路径

    private String  username;
    private String  avatar;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date    createTime;

}
